From 52444b565aa3fa5719df3acf490eb11b9337511c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 26 Nov 2023 13:30:56 +0000 Subject: Test WasmBinaryFormatModules directly --- ...mpiler.testing.snapshots.Snapshotter)].expected | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctionImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctionImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctionImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctionImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..41e847fc --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithFunctionImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,22 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[2]: + - type[0] () -> nil + - type[1] (i32) -> nil +Import[2]: + - func[0] sig=0 <- ModuleName1.EntityName1 + - func[1] sig=1 <- ModuleName2.EntityName2 +Custom: + - name: "linking" + - symbol table [count=2] + - 0: F func=0 [ undefined explicit_name binding=global vis=default ] + - 1: F func=1 [ undefined explicit_name binding=global vis=default ] +Custom: + - name: "name" + - func[0] + - func[1] + +Code Disassembly: -- cgit v1.2.3